<?php
/**
 *
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       app.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
 */
$title = __d('cake_dev', 'Chloe Rossi');
?>
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
    <?php echo $this->Html->charset(); ?>
    <title>
        <?php echo $title ?>:
        <?php echo $title_for_layout; ?>
    </title>
    <link rel="stylesheet" type="text/css"
          href="http://fonts.googleapis.com/css?family=Titillium+Web:400,600|Patua+One:400|Titillium+Web:400italic,700italic&subset=latin,latin-ext"/>
    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>

    <?php
    echo $this->Html->meta('icon');
    echo $this->element('assets');
    echo $this->fetch('meta');
    echo $this->fetch('css');
    echo $this->fetch('script');
    ?>

</head>
<body>
<?php
if ($this->Session->read('user.is_admin')) {
    echo $this->element('admin_bar');
}
?>
<!-- Wrapper -->
<div id="wrapper" class="wrapper">

<!-- Header -->
<?php
echo $this->element('header', array(
    'title' => $title,
    'pages' => $pages
));
?>

<!-- Container -->
<div id="container">
<?php echo $this->Session->flash(); ?>
<?php echo $this->fetch('content'); ?>
</div>
<!-- /Container -->

<!-- Footer -->
<div id="footer">
    <div id="copyright">© 2013 All Rights Reserved. Design by www.uou.ch.</div>
</div>
<!-- /Footer -->
</body>
</html>
